package com.ruoyi.web.controller.common.base;

import lombok.*;

/**
 * 分页的返回值
 */
@Getter
@Setter
@ToString(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class ResPage {

    private long total;

    private int page;

    private int size;

    public static ResPage getPage(long total, int page, int size) {
        return new ResPage(total, page, size);
    }

    public static ResPage defaultPage() {
        return new ResPage(10, 1, 10);
    }
}
